package com.empire.module.sporttery.dal.mysql.football500rangzhidetail;

import java.util.*;

import com.empire.framework.common.pojo.PageResult;
import com.empire.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.empire.framework.mybatis.core.mapper.BaseMapperX;
import com.empire.module.sporttery.dal.dataobject.football500rangzhidetail.Football500RangzhiDetailDO;
import org.apache.ibatis.annotations.Mapper;
import com.empire.module.sporttery.controller.admin.football500rangzhidetail.vo.*;

/**
 * 让球实时 Mapper
 *
 * @author 无敌仙人
 */
@Mapper
public interface Football500RangzhiDetailMapper extends BaseMapperX<Football500RangzhiDetailDO> {

    default PageResult<Football500RangzhiDetailDO> selectPage(Football500RangzhiDetailPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<Football500RangzhiDetailDO>()
                .eqIfPresent(Football500RangzhiDetailDO::getMatchId, reqVO.getMatchId())
                .eqIfPresent(Football500RangzhiDetailDO::getYpId, reqVO.getYpId())
                .eqIfPresent(Football500RangzhiDetailDO::getHomeWater, reqVO.getHomeWater())
                .eqIfPresent(Football500RangzhiDetailDO::getHomeStatus, reqVO.getHomeStatus())
                .eqIfPresent(Football500RangzhiDetailDO::getDrawWater, reqVO.getDrawWater())
                .eqIfPresent(Football500RangzhiDetailDO::getDrawStatus, reqVO.getDrawStatus())
                .eqIfPresent(Football500RangzhiDetailDO::getAwayWater, reqVO.getAwayWater())
                .eqIfPresent(Football500RangzhiDetailDO::getAwayStatus, reqVO.getAwayStatus())
                .eqIfPresent(Football500RangzhiDetailDO::getBackRate, reqVO.getBackRate())
                .betweenIfPresent(Football500RangzhiDetailDO::getCreateTime, reqVO.getCreateTime())
                .orderByDesc(Football500RangzhiDetailDO::getId));
    }

}